package start.aai;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


@SpringBootApplication
@MapperScan("start.aai.mapper")
public class AaiApplication {
    static {
        // 禁用Unsafe警告
        System.setProperty("io.netty.tryReflectionSetAccessible", "true");
        System.setProperty("io.netty.maxDirectMemory", "0");
        // 添加以下属性以进一步抑制Netty的警告信息
        System.setProperty("io.netty.noPreferDirect", "true");
        System.setProperty("io.netty.noUnsafe", "true");
    }
    public static void main(String[] args) {
        SpringApplication.run(AaiApplication.class, args);
    }
}
